// @ts-ignore
/* eslint-disable */
import request from '@/utils/request'

/** 此处后端没有提供注释 DELETE /cartItem/deleteByCartId */
export async function deleteByCartId(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: CartService.deleteByCartIdParams,
  options?: { [key: string]: any }
) {
  return request<any>(`/cart/cartItem/deleteByCartId`, {
    method: 'DELETE',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 DELETE /cartItem/deleteByCartIdAndProductId */
export async function deleteByCartIdAndProductId(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: CartService.deleteByCartIdAndProductIdParams,
  options?: { [key: string]: any }
) {
  return request<any>(`/cart/cartItem/deleteByCartIdAndProductId`, {
    method: 'DELETE',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 GET /cartItem/listCartItemGroupBySeller */
export async function listCartItemGroupBySeller(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: CartService.listCartItemGroupBySellerParams,
  options?: { [key: string]: any }
) {
  return request<CartService.Result>(`/cart/cartItem/listCartItemGroupBySeller`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}
